package com.tt.fashionWebSite.dto;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by isoft-work 5 on 1/17/2015.
 */
public class SaleProductReportDto implements Serializable {
   private String maSP;
   private String tenSP;
   private Date ngayBD;
   private Date ngayKT;

   public SaleProductReportDto(Object[] info) {
      if(info[0] != null) {
         this.maSP = info[0].toString();
      }

      if(info[1] != null) {
         this.tenSP = info[1].toString();
      }

      if(info[2] != null) {
         this.ngayBD = (Date)info[2];
      }

      if(info[3] != null) {
         this.ngayKT = (Date)info[3];
      }
   }

   public String getMaSP() {
      return maSP;
   }

   public void setMaSP(String maSP) {
      this.maSP = maSP;
   }

   public String getTenSP() {
      return tenSP;
   }

   public void setTenSP(String tenSP) {
      this.tenSP = tenSP;
   }

   public Date getNgayBD() {
      return ngayBD;
   }

   public void setNgayBD(Date ngayBD) {
      this.ngayBD = ngayBD;
   }

   public Date getNgayKT() {
      return ngayKT;
   }

   public void setNgayKT(Date ngayKT) {
      this.ngayKT = ngayKT;
   }
}
